import { tableServiceInterface } from "@/common/interface/table.interface";
import { $getMessageCateList, $messageCateAdd, $messageCateDetail, $messageCateDetele, $messageCateUpdate } from "@/apis/message/message";
import { messageCateAdd, messageCateListInterface, messageCateUpdate } from "@/apis/message/message.interface";

export default class LeaveWordCateService implements tableServiceInterface {
  async getTable(e: messageCateListInterface): Promise<any> {
    return $getMessageCateList(e);
  }
  detail(id: number): Promise<any> {
    return $messageCateDetail(id)
  }
  deleteMultiple(e: Array<string>): Promise<any> {
    return $messageCateDetele(e);
  }
  add(e: messageCateAdd): Promise<any> {
    return $messageCateAdd(e);
  }
  edit(e: messageCateUpdate) {
    return $messageCateUpdate(e);
  }
}